const mongoose = require('mongoose')

const sheetSchema = new mongoose.Schema({
    title: {
        type: String,
        required: true,
    },
    content: {
        type: Array,
        required: false,
        default: []
    },
    createdAt: {
        type: Date,
        default: Date.now
    },
    updatedAt: {
        type: Date,
        default: Date.now
    },
    permissionsId: {
        type: Array,
        required: true,
    },
    favoriteAuthor: {
        type: Array,
        default: [],
    },
    author: {
        type: String,
        required: true,
    }
})

module.exports = sheetSchema